package com.jspgou.cms.manager.impl;

import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.jspgou.cms.dao.ReceiverMessageDao;
import com.jspgou.cms.entity.ReceiverMessage;
import com.jspgou.cms.manager.ReceiverMessageMng;
import com.jspgou.common.page.Pagination;


/**
 *江西金磊科技发展有限公司jeecms研发
 */

@Service
@Transactional
public class ReceiverMessageMngImpl implements ReceiverMessageMng {

	public Pagination getPage(Long sendMemberId,
			Long receiverMemberId, String title, Date sendBeginTime,
			Date sendEndTime, Boolean status, Integer box, Boolean cacheable,
			int pageNo, int pageSize) {
		return dao.getPage(sendMemberId, receiverMemberId, title,
				sendBeginTime, sendEndTime, status, box, cacheable, pageNo,
				pageSize);
	}
	
	public List<ReceiverMessage> getList(Long sendMemberId,
			Long receiverMemberId, String title, Date sendBeginTime,
			Date sendEndTime, Boolean status, Integer box, Boolean cacheable) {
		return dao.getList(sendMemberId, receiverMemberId, title,
				sendBeginTime, sendEndTime, status, box, cacheable);
	}

	public ReceiverMessage findById(Integer id) {
		return dao.findById(id);
	}

	public ReceiverMessage save(ReceiverMessage bean) {
		return dao.save(bean);
	}

	public ReceiverMessage update(ReceiverMessage bean) {
		return dao.update(bean);
	}

	public ReceiverMessage deleteById(Integer id) {
		return dao.deleteById(id);
	}

	public ReceiverMessage[] deleteByIds(Integer[] ids) {
		return dao.deleteByIds(ids);
	}

	@Autowired
	private ReceiverMessageDao dao;

}
